<template>
  <div id="app">
    <router-view></router-view>
  </div>
</template>

<script>
export default {
  name: "App",

  created: function() {
 
  },

  mounted: function() {
    var path = window.location.hash;
    if (path != "#/login") {
      //页面刷新立即刷新token
      this.$store.dispatch("RefreshToken");
      //定时刷新token
      setInterval(_ => {
        this.$store.dispatch("RefreshToken");
      }, 60 * 28 * 1000);
    }
  }
};
</script>

<style>
.el-tabs__nav-wrap:after {
  display: none;
}
ul {
  padding: 0;
  margin: 0;
}
ul li {
  list-style: none;
}
.j_item {
  position: relative;
  border-bottom: 1px solid #ccc;
  padding: 15px 0;
  line-height: 1.5em;
}
.j_item_title {
  font-size: 18px;
  font-weight: bold;
}
.j_item_context {
  font-size: 15px;
  color: #777;
}
.j_showOrBlock {
  color: #e6a23c;
  font-size: 15px;
  cursor: pointer;
}
.j_right_btn {
  position: absolute;
  right: 3px;
  top: 20px;
  width: 75px;
  text-align: center;
}
</style>